package net.odtel.mailadmin.services;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import net.odtel.mailadmin.dao.EmailDomainDAO;
import net.odtel.mailadmin.model.EmailDomain;

public class EmailDomainServiceImpl implements EmailDomainService {

	private EmailDomainDAO emailDomainDAO;
	
	@Autowired
	public void setEmailDomainDAO(EmailDomainDAO emailDomainDAO) {
		this.emailDomainDAO = emailDomainDAO;
	}
	
	
	public void add(EmailDomain emailDomain) {
		 emailDomainDAO.add(emailDomain);
	}

	public void update(EmailDomain emailDomain) {
		 emailDomainDAO.update(emailDomain);

	}

	public void remove(Long emailDomainId) {
		 emailDomainDAO.remove(emailDomainId);

	}

	public Map<String, String> getMap() {
		return  emailDomainDAO.getMap();
	}

}
